efi: introduce efi_arch_flush_dcache_area
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Wed, 9 Sep 2015 13:29:06 +0000 (15:29 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 9 Sep 2015 13:29:06 +0000 (15:29 +0200)
commit0d6a3c755374f04f6dd25373da28291a8f35bede
treee9064112b5112c17968fcd811bec3bfeaf2d5034
parent315a8722b4d7ba6141c6cc85009b6e09f5b20424
efi: introduce efi_arch_flush_dcache_area

Objects loaded by FileHandle->Read need to be flushed from dcache,
otherwise copy_from_paddr will read stale data when copying the kernel,
causing a failure to boot.

Introduce efi_arch_flush_dcache_area and call it from read_file.

This commit introduces no functional changes on x86.

Reported-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/arm/efi/efi-boot.h
xen/arch/x86/efi/efi-boot.h
xen/common/efi/boot.c